home *** CD-ROM | disk | FTP | other *** search
- Path: mcrware.microware.com!jejones
- From: jejones@microware.com (James Jones)
- Newsgroups: comp.lang.c++
- Subject: Re: Encapsulation question.
- Date: 5 Mar 1996 23:19:20 GMT
- Organization: Microware Systems Corp., Des Moines, Iowa
- Message-ID: <4hii5o$bpf@mcrware.microware.com>
- References: <4hg701$goi@insosf1.netins.net>
- NNTP-Posting-Host: mork.microware.com
-
- In article <4hg701$goi@insosf1.netins.net> hhowe@trgnet.com (Harold Howe) writes:
- >Does the following violate encapsulation? Should an object tell a private
- >member the address of other private members? I am using this on a grander
- >scale, in which the Application class tells a private dialog object the
- >address of a private configuration structure? The dialog class needs access
- >to the structure so it can modify it, and this is how I tell the dialog where
- >to look. Aside from using globals, does anyone have any better suggestions?
-
- I think that the "friend" facility is supposed to provide for that sort
- of underhanded action.
-
- James Jones
-
- Opinions herein are those of the author, and not necessarily those of any
- organization.
-